package com.service;

import com.mapper.NewsMapper;
import com.pojo.News;
import com.pojo.NewsList;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToFileService {


    @Autowired
    public NewsMapper mapper;

    /*
     * @Author 陆微腾
     * @Description 获取 前30  的 数据的资源 TODO
     * @Date: 2020/5/8
     * @MethodName:
     * @Param
     * @return
     **/


    public List<NewsList> findTop30(int type) {
        return mapper.findByTypeTop30(type);
    }
}
